<?php 
class InformeHelper extends Helper{
	public function existe_informe($mes, $year, $id){
		APP::import('Model','Informemensuale');
		$this->Informemensuale=new Informemensuale();
		$fecha=$mes."-".$year;
		$this->data = $this->Informemensuale->find('first', array('fields'=>array('Informemensuale.id'),
        												   'conditions'=>array('Informemensuale.mes_ano'=>$fecha,
        																	   'Informemensuale.municipio_id'=>$id)));		
        return $this->data;
	}
}
?>



